package com.xoa.model.emergency;

import com.xoa.model.fixAssets.EduFixAssets;
import com.xoa.model.fixAssets.EduFixAssetsType;
import com.xoa.util.common.StringUtils;

import java.util.List;

public class AssetGroup {





    // 分组id
    private Integer groupId;

    // 分组名称
    private String groupName;

    // 设备ids
    private String assetIds;

    // 设备名称串
    private String assetNames;

    // 设备类型数组
    private List<EduFixAssetsType> eduFixAssetsTypes;

    // 设备数组
    private List<EduFixAssets> eduFixAssets;

    //临时封装参数，用于数结构是否有子级
    private boolean isLeaf=true;

    //临时封装参数，用于树结构显示
    private String label;

    public String getLabel() {
        if(StringUtils.checkNull(label)){
            return groupName;
        }
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public boolean getIsLeaf() {
        return isLeaf;
    }

    public void setIsLeaf(boolean leaf) {
        isLeaf = leaf;
    }

    public String getAssetNames() {
        return assetNames;
    }

    public void setAssetNames(String assetNames) {
        this.assetNames = assetNames;
    }

    public List<EduFixAssetsType> getEduFixAssetsTypes() {
        return eduFixAssetsTypes;
    }

    public void setEduFixAssetsTypes(List<EduFixAssetsType> eduFixAssetsTypes) {
        this.eduFixAssetsTypes = eduFixAssetsTypes;
    }

    public List<EduFixAssets> getEduFixAssets() {
        return eduFixAssets;
    }

    public void setEduFixAssets(List<EduFixAssets> eduFixAssets) {
        this.eduFixAssets = eduFixAssets;
    }

    public Integer getGroupId() {
        return groupId;
    }

    public void setGroupId(Integer groupId) {
        this.groupId = groupId;
    }

    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName == null ? null : groupName.trim();
    }

    public String getAssetIds() {
        return assetIds;
    }

    public void setAssetIds(String assetIds) {
        this.assetIds = assetIds == null ? null : assetIds.trim();
    }
}